import time

from page import IndexPageHome


class IndexHandle(IndexPageHome):
    def click_index_menu(self):
        self.get_menu_index_ele().click()

    # 点击查看
    def click_look(self):
        self.get_look_ele().click()

    def click_menu_yx(self):  # 点击隐形正畸菜单栏
        self.get_menu_yx_ele().click()

    def click_menu_gd(self):
        self.get_menu_gd_ele().click()  # 点击固定正畸

    def click_quit1(self):
        time.sleep(1)
        self.get_quit1_ele().click()

    def click_quit2(self):
        self.get_quit2_ele().click()

    def click_quit3(self):
        self.get_quit3_ele().click()

    def click_center1(self):
        self.get_center1_ele().click()

    def click_center2(self):
        self.get_center2_ele().click()

    def use_scuess(self):
        self.get_use_sucess_ele()

    def click_index_search1(self, search_val):
        self.get_index_search1_ele().click()  # 首页点击查询输入框
        self.get_index_search1_ele().send_keys(search_val)  # 首页点击查询输入框

    def click_index_search2(self):
        self.get_index_search2_ele().click()  # 首页点击查询按钮

    def click_details_ele(self):
        self.get_details_ele().click()  # 首页点击详情

    # 循环查看模型
    def click_model1_ele(self):
        self.get_model1_ele().click()

    def click_model2_ele(self):
        self.get_model2_ele().click()

    def click_model3_ele(self):
        self.get_model3_ele().click()

    def click_model4_ele(self):
        self.get_model4_ele().click()
